﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UrlEdit.aspx.cs" Inherits="CJJCH.Web.Manage.UrlEdit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../Style/SystemCss.css" rel="stylesheet" type="text/css" />
    <script src="../JScript/jquery-1.4.4.min.js" type="text/javascript"></script>
    <script src="../JScript/Calendar/WdatePicker.js" type="text/javascript"></script>
    <script src="../Script/JQcheck.js" type="text/javascript"></script>
    <script src="../ckeditor/ckeditor.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        function checkform() {
            if (IsNothing($("#txtUrlString"), "请输入链接地址！")) {
                return false;
            }
            if (IsNothing($("#txtURLName"), "请输入名称！")) {
                return false;
            }
            if (IsNothing($("#dropType"), "请选择类别！")) {
                return false;
            }
            else if (checkdigit(($("#dropType")), "类别选择错误！")) {
                return false;
            }
            return true;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="BodyRight" style="width: 100%;">
        <div class="BoxHeader_Test" id="div1" runat="server">
            <div class="Left_Test">
            </div>
            <div class="BoxHeader_Test" id="divhidtop" runat="server">
                <div class="Left_Test">
                </div>
                <div class="Linkbf12" style="padding: 8px 0px 0px 10px; color: #000000; font-size: 12px;
                    font-weight: bold;">
                    <asp:HyperLink ID="lnkUrl" runat="server">友情链接列表</asp:HyperLink>
                    >>
                    <asp:Label ID="lblUrl" runat="server">修改</asp:Label>
                </div>
            </div>
            <div runat="server" id="divHidden" style="display: none;">
                <asp:Label ID="lblKeyType" runat="server"></asp:Label>
            </div>
            <table border="0" cellspacing="0" cellpadding="0" height="100%" width="100%">
                <tr>
                    <td width="1" height="100%" class="Left">
                    </td>
                    <td height="100%" valign="top">
                        <table cellpadding="0" cellspacing="0" class="add_table" style="width: 98%; margin: 10px auto;"
                            bgcolor="#FFFFFF">
                            <tr>
                                <td width="120px" align="right" style="padding: 2px 10px 2px 10px;" valign="middle"
                                    class="style1">
                                    链接地址：
                                </td>
                                <td align="left" style="padding: 2px 10px 2px 10px;" valign="middle">
                                    <asp:TextBox ID="txtUrlString" runat="server" Width="300" class="InputSearch_x1"></asp:TextBox>*&nbsp;&nbsp;&nbsp;形式为：http:\\www.jiankeyan.com
                                </td>
                            </tr>
                            <tr>
                                <td width="120px" align="right" style="padding: 2px 10px 2px 10px;" valign="middle"
                                    class="style1">
                                    上传图片：
                                </td>
                                <td align="left" style="padding: 2px 10px 2px 10px;" valign="middle">
                                    <asp:FileUpload ID="fileImg" runat="server" class="InputSearch_x1" />
                                    <asp:Label ID="lblImg" ForeColor="Red" runat="server"></asp:Label>
                                        <asp:Label ID="Label1" runat="server" Text="如果不选择图片默认为原来的图片"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td width="120px" align="right" style="padding: 2px 10px 2px 10px;" valign="middle"
                                    class="tdBg1">
                                    名称：
                                </td>
                                <td align="left" style="padding: 2px 10px 2px 10px;" valign="middle">
                                    <asp:TextBox ID="txtURLName" runat="server" Width="300" class="InputSearch_x1"></asp:TextBox>*
                                </td>
                            </tr>
                            <tr>
                                <td width="120px" align="right" style="padding: 2px 10px 2px 10px;" valign="middle"
                                    class="style1">
                                    类别：
                                </td>
                                <td align="left" style="padding: 2px 10px 2px 10px;" valign="middle" class="style1">
                                    <asp:DropDownList ID="dropType" runat="server" class="InputSearch_x1">
                                        <asp:ListItem Text="请选择" Value=""></asp:ListItem>
                                    </asp:DropDownList>
                                    *
                                </td>
                            </tr>
                            <tr>
                                <td align="right" style="padding: 2px 10px 2px 10px;" valign="middle" class="style2">
                                    操作：
                                </td>
                                <td align="left" style="padding: 2px 10px 2px 10px;" valign="middle" class="style2">
                                    <asp:Button ID="btnSave" runat="server" Text="保 存" Style="padding: 2px 10px 3px 10px"
                                        Width="62px" CssClass="BtnSearch_x1" OnClick="btnSave_Click" />
                                    &nbsp;
                                    <asp:Button ID="btnBack" runat="server" Text="返 回" Style="padding: 2px 10px 2px 10px"
                                        Width="62px" CssClass="BtnSearch_x1" OnClick="btnBack_Click" />
                                </td>
                            </tr>
                        </table>
                    </td>
                    <td width="0" height="100%" class="Right">
                    </td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>
